(function() {
	require(["lrz"], function() {
		var lrz_config = {
			width: 500,
			quality: 1
		};
		App.set("$Event.solve_img", function(e, vm) {
			var img_file = this.files[0];
			var base64;
			console.log(img_file);
			lrz(img_file, lrz_config, function(result) {
				console.log(result.base64);
				coAjax.post(appConfig.other.upload_base64_image, {
					img_base64: result.base64
				}, function(img_result) {
					console.log(img_result);
				});
			});
		});
	})
}());